package com.zhyt.intelligentpipeline.service;

import com.zhyt.intelligentpipeline.model.CorrosionDetection;
import com.zhyt.intelligentpipeline.model.DeformationDetection;
import com.zhyt.intelligentpipeline.model.FailureSafetyPressure;

import java.util.List;

public interface WorkingConditionService {

    List<CorrosionDetection> getPipelineCorrosionInfo(String initialStation, String endStation);

    List<DeformationDetection> getPipelineDeformation(String initialStation, String endStation );

    /**
     * 通过腐蚀ID获取安全工作压力和失效压力和建议
     * @param f1 设置模型系数  0.9
     * @param f2 设置操作使用系数   0.72
     * */
    FailureSafetyPressure getFailureSafetyPressure(String corrosionIds,Double f1,Double f2);

    FailureSafetyPressure getFailureSafetyPressureByCorId(String corrosionId);
}
